Skip 'Full path to XCSV style file' for all but xcsv itself.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 31 Oct 2005 22:04:44 +0000 (22:04 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 31 Oct 2005 22:04:44 +0000 (22:04 +0000)
gpsbabel/vecs.c

index 7b5c6c08d3b05f2201584e5b2d924bb415eb3be6..4e0cbd1e1efaefa2efea044517c09983131bdc69 100644 (file)
@@ -712,8 +712,16 @@ sort_and_unify_vecs(int *ctp)
                /* Reset file type to inherit ff_type from xcsv for everything
                 * except the xcsv format itself, which we leave as "internal"
                 */
-               if (strcmp(svec->name, "xcsv"))
+               if (strcmp(svec->name, "xcsv")) {
+                       int n;
                        svp[i]->vec->type = xcsv_file.type;
+                       /* Skip over the first help entry for all but the
+                        * actual 'xcsv' format - so we don't expose the
+                        * 'full path to xcsv style file' argument to any
+                        * GUIs for an internal format.
+                        */
+                       svp[i]->vec->args++;
+               }
                
                svp[i]->desc = xcsv_file.description;
        }